package cn.tedu.tea.mapper;

import cn.tedu.tea.domain.Attach;
import cn.tedu.tea.domain.vo.AttachListVO;
import cn.tedu.tea.domain.vo.AttachStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AttachMapper {
    int insert(Attach attach);
    int deleteById(Integer id);
    int deleteByIds(Integer[] ids);
    int update(Attach attach);

    int countByFileUuid(String fileUuid);
    int countByFileUuidAndNotId(String fileUuid, Integer id);

    AttachStandardVO getStandardById(Integer id);
    List<AttachListVO> list();

}
